<div class="sebelumjud">
        <div class="jodol">Problem | —<?php if(!empty($divisi)) echo $divisi?>: New</div>
                        <?php
                            if(!empty($page) and !empty($curr_page)){
                                echo '<div id="panah">';
                                if($curr_page>1)
                                echo '<a href="'.base_url().'progress/progress_con/problem_page/'.$stat.'/'.$id.'/'.($curr_page-1).'" class="pre"><img src="'.base_url().'images/pre.png" width="18" height="17" /></a>
                                    ';
                                if($curr_page<$page)
                                    echo '<a href="'.base_url().'progress/progress_con/problem_page/'.$stat.'/'.$id.'/'.($curr_page+1).'" class="next"><img src="'.base_url().'images/next.png" width="18" height="17" /></a>
                                        ';
                                echo '</div>';
                            }
                        ?>    
</div>
<div class="clear"></div>

        <div id="jumat">
                <div id="last">
                    <a href="<?php echo base_url().'progress/progress_con/problem'?>">Home</a>
                    <a href="<?php echo base_url().'progress/progress_con/problem_page/new'?>">New</a>
                    <a href="<?php echo base_url().'progress/progress_con/problem_page/handled'?>">Handled</a>
                    <a href="<?php echo base_url().'progress/progress_con/problem_page/rejected'?>">Rejected</a>
                    <a href="<?php echo base_url().'progress/progress_con/problem_page/solved'?>">Solved</a>
                    <a href="<?php echo base_url().'progress/progress_con/problem_manage'?>">Manage</a>
                </div>
                <table border="0" cellspacing="0" cellpadding="0" class="tabeltgl">
                    <tr>
                    <td><ul class="are">
                        <li><a href="<?php echo base_url().'progress/progress_con/problem_page/new/-1'?>">All Division</a></li>
                        <?php
                            if(!empty($list_divisi)){
                                for($i=0;$i<count($list_divisi);$i++){
                                    echo '<li><a href="'.base_url().'progress/progress_con/problem_page/new/'.$list_divisi[$i]['ID_DIVISI'].'">'.$list_divisi[$i]['NAMA_DIVISI'].'</a></li>
                                        ';
                                }
                            }
                        ?>
                </ul></td>
                </tr>
                </table>

                <div id="text">
                    <?php
                        if(!empty($problem)){
                            for($i=0;$i<count($problem);$i++){
                                if(empty($problem[$i]['ID_KOMPLAIN'])){
                                    echo '
                                    <div class="bebek bwhpad">
                                        <img class="avatarmu" src="'.$problem[$i]['FOTO'].'" width="48" height="48" />
                                        '.$problem[$i]['KOMENTAR'].'
                                        <p class="clear"></p>
                                        <span class="staff">Via Students Feedback —'.$problem[$i]['NAMA'].' <br />'.$problem[$i]['TANGGAL'].', '.$problem[$i]['KODE_PELATIHAN'].'-'.$problem[$i]['ANGKATAN'].', Sesi-'.$problem[$i]['NOMOR_SESI'].', '.$problem[$i]['NAMA_RUANGAN'].'</span>';
                                        if(!empty($problem[$i]['ANGGOTA_DIVISI']))
                                            echo '
                                                <span class="like"><input name="send" onClick="location.href=\''.base_url().'progress/progress_con/problem_fix/2/'.$problem[$i]['ID'].'_'.$problem[$i]['KODE_PELATIHAN'].'_'.$problem[$i]['ANGKATAN'].'_'.$problem[$i]['NOMOR_SESI'].'\'" type="button" class="fixbut" value="Fix" /></span>
                                                ';
                                        else echo '<span class="plus">Not yet</span>';
                                        
                                        echo '<p class="clear"></p>
                                    </div>
                                        ';
                                    
                                }else{
                                   echo '
                                        <div class="bebek bwhpad">
                                            <img class="avatarmu" src="'.$problem[$i]['FOTO'].'" width="48" height="48" />
                                            '.$problem[$i]['ISI_KOMPLAIN'].'
                                            <p class="clear"></p>
                                            <span class="staff">Direct Complain —'.$problem[$i]['NAMA'].'<br />'.$problem[$i]['TGL_KOMPLAIN'].', '.$problem[$i]['WAKTU_KOMPLAIN'].'</span>';
                                            if(!empty($problem[$i]['ANGGOTA_DIVISI']))
                                                echo '
                                                    <span class="like"><input name="send" onClick="location.href=\''.base_url().'progress/progress_con/problem_fix/1/'.$problem[$i]['ID_KOMPLAIN'].'\'" type="button" class="fixbut" value="Fix" /></span>
                                                    ';
                                            else echo '<span class="plus">Not yet</span>';
                                            echo '<p class="clear"></p>
                                        </div>
                                        ';
                                }
                            }
                        }
                    ?>
<!--                        <div class="bebek bwhpad">
                                <img class="avatarmu" src="images/jessica.jpg" width="48" height="48" />
                                Ini kalo dari Student feedback, ada ruang dan kelas pelatihan apa. hampir di semua komputer loh. oya,absen via feedback ini ada yang ga diisi karena komputer eror. jadinya kayak bolos banyak.
                                <p class="clear"></p>
                                <span class="staff">Via Students Feedback —Fatimah Dinan <br />2 Macrh 2012, CDA-6, Sesi-1, RPS3</span>
                                <span class="like"><input onClick="location.href='problem_fix.html'" name="send" type="button" class="fixbut" value="Fix" /></span>
            <p class="clear"></p>
                        </div>
                        <div class="bebek bwhpad">
                                <img class="avatarmu" src="images/warcux_normal.jpg" width="48" height="48" />
                                Ini klo complain lewat web, ada jamnya. Kapolri Jenderal Pol Timur Pradopo meredam isu penarikan penyidik KPK karena permintaan pihak tertentu. Timur menyebut penarikan dilakukan karena kebutuhan Polri.
                                <p class="clear"></p>
                                <span class="staff">Direct Complain —Fatimah Dinan<br />2 Macrh 2012, 10.00PM</span>
                                <span class="plus">Not yet</span>
                                <p class="clear"></p>
                        </div>-->
                        <p class="paging">
                            <?php
                                if(!empty($page) and !empty($curr_page)){
                                    if($curr_page>1)
                                    echo '<a href="'.base_url().'progress/progress_con/problem_page/'.$stat.'/'.$id.'/'.($curr_page-1).'"><</a>';
                                    for($i=0;$i<$page;$i++){
                                        if($curr_page==($i+1))
                                            echo '<b>';
                                        echo '<a href="'.base_url().'progress/progress_con/problem_page/'.$stat.'/'.$id.'/'.($i+1).'">'.($i+1).'</a>';
                                        if($curr_page==($i+1))
                                            echo '</b>';
                                    }
                                    if($curr_page<$page)
                                        echo '<a href="'.base_url().'progress/progress_con/problem_page/'.$stat.'/'.$id.'/'.($curr_page+1).'">></a>';
                                }
                            ?>
                            </p>
                </div><!---end div text--->
        </div><!---end div jumat--->
        <div class="clear"></div>